import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

class BaseStatefulWidget extends StatefulWidget {
  const BaseStatefulWidget({Key? key}) : super(key: key);

  @override
  // ignore: no_logic_in_create_state
  State<StatefulWidget> createState() {
    throw UnimplementedError();
  }

  void showAppToast(String message) {
    Fluttertoast.showToast(
        msg: message, gravity: ToastGravity.CENTER, backgroundColor: Colors.yellow, textColor: Colors.black);
  }

  // @override
  // noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
